import os
print(os.path.isfile(r'C:\Users\lenovo1\Desktop\EXP10\checkpoint.path.tar'))